import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LIST: AppRouteRecordRaw = {
  path: 'org',
  name: 'Organizaiton',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.org',
    requiresAuth: true,
    icon: 'icon-user-group',
    order: 0,
  },
  children: [
    {
      path: 'department',
      name: 'Department',
      component: () => import('@/views/organization/department/index.vue'),
      meta: {
        locale: 'menu.org.department',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
      },
    },
    {
      path: 'position',
      name: 'Position',
      component: () => import('@/views/organization/position/index.vue'),
      meta: {
        locale: 'menu.org.position',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
      },
    },
    {
      path: 'staff',
      name: 'Staff',
      component: () => import('@/views/organization/staff/index.vue'),
      meta: {
        locale: 'menu.org.staff',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
      },
    },
  ],
};

export default LIST;
